import { Card, message,Table,Progress,RowSelect,Button, Row,Divider } from 'antd';
import ProForm, {
  ProFormDateRangePicker,
  ProFormDependency,
  ProFormDigit,
  ProFormRadio,
  ProFormSelect,
  ProFormText,
  ProFormTextArea,
} from '@ant-design/pro-form';
import { useRequest } from 'umi';
import { PageContainer } from '@ant-design/pro-layout';
// import { fakeSubmitForm } from './service';
import styles from './style.less';
// import AdvancedSearchForm from './AdvancedSearchForm '
import { Select } from 'antd';
import { PlusOutlined,CloudUploadOutlined } from '@ant-design/icons';
import { Router } from 'express';


const columns = [
  {
    title: '序号',
    dataIndex: 'key',
    key: 'key',
    render: text => <a>{text}</a>,
  },
  {
    title: '年级',
    dataIndex: 'name1',
    key: 'name1',
    render: text => <a>{text}</a>,
  },
  {
    title: '年级管理主任',
    dataIndex: 'name2',
    key: 'name2',
    render: text => <a>{text}</a>,
  },
  {
    title: '班级数量',
    dataIndex: 'name3',
    key: 'name3',
    render: text => <a>{text}</a>,
  },
  {
    title: '学生数量',
    dataIndex: 'name4',
    key: 'name4',
    render: text => <a>{text}</a>,
  },
  {
    title: '操作',
    key: 'action',
    render: (text, record) => (
      <span>
        {/* <a onClick={()=>{Router.push('/userManagement/admin/edit')}}>编辑</a> */}
        <Divider type="vertical" />
        <a>删除</a>
      </span>
    ),
  },
];


const data = [
  {
    key: '1',
    name1: '一年级',
    name2: '王老师',
    name3: '8',
    name4: '100',
    name5: '王学聪',
    name6: '三年级二班',
  },
  {
    key: '2',
    name1: '二年级',
    name2: '李老师',
    name3: '8',
    name4: '200',
    name5: '王学聪',
    name6: '三年级二班',
  },
  {
    key: '3',
    name1: '三年级',
    name2: '宋老师',
    name3: '8',
    name4: '156',
    name5: '王学聪',
    name6: '三年级二班',
  },
  {
    key: '4',
    name1: '四年级',
    name2: '钟老师',
    name3: '8',
    name4: '234',
    name5: '王学聪',
    name6: '三年级二班',
  },
  {
    key: '5',
    name1: '五年级',
    name2: '陈老师',
    name3: '8',
    name4: '335',
    name5: '王学聪',
    name6: '三年级二班',
  },
  {
    key: '6',
    name1: '六年级',
    name2: '高老师',
    name3: '8',
    name4: '246',
    name5: '王学聪',
    name6: '三年级二班',
  },
];
const BasicForm2 = () => {
  // const { run } = useRequest(fakeSubmitForm, {
  //   manual: true,
  //   onSuccess: () => {
  //     message.success('提交成功');
  //   },
  // });

  const onFinish = async (values) => {
    // run(values);
  };

  return (
    <PageContainer content="">
      {/* <Card bordered={false}>
        <AdvancedSearchForm />
      </Card> */}
      <Card bordered={false}>
        <Row>
          <Button type="primary" icon={<PlusOutlined />}  style={{ margin: 8 }}>
            新增
          </Button>
          {/* <Button type="primary" icon={<CloudUploadOutlined />}  style={{ margin: 8 }}>
            导入
          </Button> */}
        </Row>
        {/* <Table columns={columns} dataSource={data} /> */}
      </Card>

    </PageContainer>
  );
};

export default BasicForm2;
